package com.sc.nft.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.MallCategory;
import com.sc.nft.entity.vo.MallCategoryVO;

import java.util.List;

/**
 * IP商城分类表服务接口
 *
 * @author zxy
 * @description IP商城
 * @since 2023-05-10 16:59:01
 */
public interface MallCategoryService {

    /**
     * 分类列表
     *
     * @param page
     * @return
     */
    IPage<MallCategoryVO> categoryPage(String name,Boolean isVirtual, Page page);

    void addCategory(String name, Boolean isBrandUse, Integer sort, Integer isSearchCondition,Boolean isVirtual);

    /**
     * 获取分类列表
     *
     * @param isVirtual 是否为虚拟商品分类
     * @return
     */
    List<MallCategory> newCategoryList(Boolean isVirtual);
}
